<template>
  <div class="not-found-container">
    <!-- 页面标题和描述 -->
    <div class="text-content">
      <h1 class="title">404 - 页面未找到</h1>
      <p class="description">抱歉，我们无法找到您请求的页面</p>
      <router-link to="/home" class="home-button">返回首页</router-link>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.not-found-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e5e6 100%);
}

.text-content {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
}

.title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.home-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: #007BFF;
  color: white;
  text-decoration: none;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 123, 255, 0.1);
}

.home-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 123, 255, 0.2);
}

.illustration-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.illustration {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.illustration:hover {
  transform: scale(1.03) rotate(1deg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.title, .description, .home-button, .illustration {
  animation: fadeInUp 0.8s ease forwards;
}

.title {
  animation-delay: 0.1s;
}

.description {
  animation-delay: 0.3s;
}

.home-button {
  animation-delay: 0.5s;
}

.illustration {
  animation-delay: 0.7s;
}
</style>